package com.zking.ssm.service;

import com.zking.ssm.model.SysRoler;
import com.zking.ssm.model.SysUser;
import com.zking.ssm.utils.PageBean;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface ISysUserService {

    int deleteByPrimaryKey(Long userId);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    @Transactional(readOnly = true)
    SysUser selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    @Transactional(readOnly = true)
    List<SysUser> selectAll(SysUser sysUser, PageBean pageBean);


    //登陆的方法
    @Transactional(readOnly = true)
    SysUser login(SysUser sysUser);

    int updateUser(SysUser record);

    int updatePassword(SysUser record);

}